package com.pxxy.app_homepage.activitys;


import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentTransaction;

import com.pxxy.app_homepage.fragment.HomeFragment;
import com.pxxy.lib_common.base.BaseActivity;
import com.pxxy.security512.R;

public class TestActivity extends BaseActivity {
    private FragmentManager homeManager;

    @Override
    public int initLayout() {
        return R.layout.homepage_activity_test;
    }

    @Override
    public void initView() {
        homeManager = getSupportFragmentManager();
        HomeFragment homeFragment = new HomeFragment();
        //获取布局管理器
        FragmentTransaction fTransaction = homeManager.beginTransaction();
        fTransaction.add(R.id.test_fragment, homeFragment);
        //提交
        fTransaction.commit();
    }
}
